//
// Created by lfm on 2025/2/25.
//
#include <iostream>
using namespace std;
//以参数来区分
void func()
{
    cout <<"func()" << endl;
}
void func(int a)
{
    cout << "func(int a)" << endl;
}
//以参数的顺序来区分
void func(int a, double b)
{
    cout << "func(int a, double b)" << endl;
}
void func(double a, int b)
{
    cout << "void func(double a, int b)" << endl;
}
//以参数个数来区分
void func(double a)
{
    cout << "func(double a)" << endl;
}

//int main()
//{
////    func();
////    func(10);
////    func(10, 3.14);
////    func(3.2, 10);
////    func(3.2);
//    return 0;
//}
